問題の説明
ボットが 1 つのコマンド discord.py に複数回応答する問題 (Issue with bot responding multiple times to one command discord.py)
コンソールを 1 つしか開いていません。これは on_message が原因だと思います。これらを削除すると、本来のように 1 回しか応答しないからです。私は後に await self.client.process_commands(message) を使用しているので、なぜそれが繰り返されるのか本当にわかりません。何か提案があれば教えてください。
リファレンスソリューション
方法 1:
I thenk you are using Cog
and Cog.listener()
.
event
and listener
in discord.py
is 2 different decorator. for example listeners
called in events
.
remove this line:
await self.client.process_commands(message)